{"ast":null,"code":"import { genComponentStyleHook, mergeToken } from '../../theme/internal';\nimport { resetComponent } from '../../style';\n// ============================== Shared ==============================\nconst genSharedBackTopStyle = token => {\n  const {\n    componentCls,\n    backTopFontSize,\n    backTopSize,\n    zIndexPopup\n  } = token;\n  return {\n    [componentCls]: Object.assign(Object.assign({}, resetComponent(token)), {\n      position: 'fixed',\n      insetInlineEnd: token.backTopInlineEnd,\n      insetBlockEnd: token.backTopBlockEnd,\n      zIndex: zIndexPopup,\n      width: 40,\n      height: 40,\n      cursor: 'pointer',\n      '&:empty': {\n        display: 'none'\n      },\n      [`${componentCls}-content`]: {\n        width: backTopSize,\n        height: backTopSize,\n        overflow: 'hidden',\n        color: token.backTopColor,\n        textAlign: 'center',\n        backgroundColor: token.backTopBackground,\n        borderRadius: backTopSize,\n        transition: `all ${token.motionDurationMid}`,\n        '&:hover': {\n          backgroundColor: token.backTopHoverBackground,\n          transition: `all ${token.motionDurationMid}`\n        }\n      },\n      // change to .backtop .backtop-icon\n      [`${componentCls}-icon`]: {\n        fontSize: backTopFontSize,\n        lineHeight: `${backTopSize}px`\n      }\n    })\n  };\n};\nconst genMediaBackTopStyle = token => {\n  const {\n    componentCls\n  } = token;\n  return {\n    [`@media (max-width: ${token.screenMD}px)`]: {\n      [componentCls]: {\n        insetInlineEnd: token.backTopInlineEndMD\n      }\n    },\n    [`@media (max-width: ${token.screenXS}px)`]: {\n      [componentCls]: {\n        insetInlineEnd: token.backTopInlineEndXS\n      }\n    }\n  };\n};\n// ============================== Export ==============================\nexport default genComponentStyleHook('BackTop', token => {\n  const {\n    fontSizeHeading3,\n    colorTextDescription,\n    colorTextLightSolid,\n    colorText,\n    controlHeightLG\n  } = token;\n  const backTopToken = mergeToken(token, {\n    backTopBackground: colorTextDescription,\n    backTopColor: colorTextLightSolid,\n    backTopHoverBackground: colorText,\n    backTopFontSize: fontSizeHeading3,\n    backTopSize: controlHeightLG,\n    backTopBlockEnd: controlHeightLG * 1.25,\n    backTopInlineEnd: controlHeightLG * 2.5,\n    backTopInlineEndMD: controlHeightLG * 1.5,\n    backTopInlineEndXS: controlHeightLG * 0.5\n  });\n  return [genSharedBackTopStyle(backTopToken), genMediaBackTopStyle(backTopToken)];\n}, token => ({\n  zIndexPopup: token.zIndexBase + 10\n}));","map":{"version":3,"names":["genComponentStyleHook","mergeToken","resetComponent","genSharedBackTopStyle","token","componentCls","backTopFontSize","backTopSize","zIndexPopup","Object","assign","position","insetInlineEnd","backTopInlineEnd","insetBlockEnd","backTopBlockEnd","zIndex","width","height","cursor","display","overflow","color","backTopColor","textAlign","backgroundColor","backTopBackground","borderRadius","transition","motionDurationMid","backTopHoverBackground","fontSize","lineHeight","genMediaBackTopStyle","screenMD","backTopInlineEndMD","screenXS","backTopInlineEndXS","fontSizeHeading3","colorTextDescription","colorTextLightSolid","colorText","controlHeightLG","backTopToken","zIndexBase"],"sources":["/data/messenger.client/node_modules/antd/es/back-top/style/index.js"],"sourcesContent":["import { genComponentStyleHook, mergeToken } from '../../theme/internal';\nimport { resetComponent } from '../../style';\n// ============================== Shared ==============================\nconst genSharedBackTopStyle = token => {\n  const {\n    componentCls,\n    backTopFontSize,\n    backTopSize,\n    zIndexPopup\n  } = token;\n  return {\n    [componentCls]: Object.assign(Object.assign({}, resetComponent(token)), {\n      position: 'fixed',\n      insetInlineEnd: token.backTopInlineEnd,\n      insetBlockEnd: token.backTopBlockEnd,\n      zIndex: zIndexPopup,\n      width: 40,\n      height: 40,\n      cursor: 'pointer',\n      '&:empty': {\n        display: 'none'\n      },\n      [`${componentCls}-content`]: {\n        width: backTopSize,\n        height: backTopSize,\n        overflow: 'hidden',\n        color: token.backTopColor,\n        textAlign: 'center',\n        backgroundColor: token.backTopBackground,\n        borderRadius: backTopSize,\n        transition: `all ${token.motionDurationMid}`,\n        '&:hover': {\n          backgroundColor: token.backTopHoverBackground,\n          transition: `all ${token.motionDurationMid}`\n        }\n      },\n      // change to .backtop .backtop-icon\n      [`${componentCls}-icon`]: {\n        fontSize: backTopFontSize,\n        lineHeight: `${backTopSize}px`\n      }\n    })\n  };\n};\nconst genMediaBackTopStyle = token => {\n  const {\n    componentCls\n  } = token;\n  return {\n    [`@media (max-width: ${token.screenMD}px)`]: {\n      [componentCls]: {\n        insetInlineEnd: token.backTopInlineEndMD\n      }\n    },\n    [`@media (max-width: ${token.screenXS}px)`]: {\n      [componentCls]: {\n        insetInlineEnd: token.backTopInlineEndXS\n      }\n    }\n  };\n};\n// ============================== Export ==============================\nexport default genComponentStyleHook('BackTop', token => {\n  const {\n    fontSizeHeading3,\n    colorTextDescription,\n    colorTextLightSolid,\n    colorText,\n    controlHeightLG\n  } = token;\n  const backTopToken = mergeToken(token, {\n    backTopBackground: colorTextDescription,\n    backTopColor: colorTextLightSolid,\n    backTopHoverBackground: colorText,\n    backTopFontSize: fontSizeHeading3,\n    backTopSize: controlHeightLG,\n    backTopBlockEnd: controlHeightLG * 1.25,\n    backTopInlineEnd: controlHeightLG * 2.5,\n    backTopInlineEndMD: controlHeightLG * 1.5,\n    backTopInlineEndXS: controlHeightLG * 0.5\n  });\n  return [genSharedBackTopStyle(backTopToken), genMediaBackTopStyle(backTopToken)];\n}, token => ({\n  zIndexPopup: token.zIndexBase + 10\n}));"],"mappings":"AAAA,SAASA,qBAAqB,EAAEC,UAAU,QAAQ,sBAAsB;AACxE,SAASC,cAAc,QAAQ,aAAa;AAC5C;AACA,MAAMC,qBAAqB,GAAGC,KAAK,IAAI;EACrC,MAAM;IACJC,YAAY;IACZC,eAAe;IACfC,WAAW;IACXC;EACF,CAAC,GAAGJ,KAAK;EACT,OAAO;IACL,CAACC,YAAY,GAAGI,MAAM,CAACC,MAAM,CAACD,MAAM,CAACC,MAAM,CAAC,CAAC,CAAC,EAAER,cAAc,CAACE,KAAK,CAAC,CAAC,EAAE;MACtEO,QAAQ,EAAE,OAAO;MACjBC,cAAc,EAAER,KAAK,CAACS,gBAAgB;MACtCC,aAAa,EAAEV,KAAK,CAACW,eAAe;MACpCC,MAAM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